﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraBars;

namespace PRO_DOCS.BLL.WIN.Templates
{
    public partial class DevxMasterRibbonForm : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        /// <summary>
        /// Gets or sets the selected record id.
        /// </summary>
        /// <value>The selected record id.</value>
        public Object SelectedRecordId
        { get; set; }

        public enum RecordStatus
        {
            New,
            Old
        }

        public RecordStatus CurrentRecordStatus
        { get; set; }

        private DAL.Database.PRO_DOCSDatabaseDataContext _PRO_DOCSDatabaseDataContext;
        [Browsable(false)]
        /// <summary>
        /// Gets or sets the cargill egypt database data context.
        /// </summary>
        /// <value>The cargill egypt database data context.</value>
        public DAL.Database.PRO_DOCSDatabaseDataContext PRO_DOCSDatabaseDataContext
        {
            get
            {
                _PRO_DOCSDatabaseDataContext = new DAL.Database.PRO_DOCSDatabaseDataContext(Properties.Settings.Default.PRO_DOCSConnectionString);//(_PRO_DOCSDatabaseDataContext == null) ? new DAL.Database.PRO_DOCSDatabaseDataContext() : _PRO_DOCSDatabaseDataContext;
                return _PRO_DOCSDatabaseDataContext;
            }
            set { _PRO_DOCSDatabaseDataContext = value; }
        }

        /// <summary>
        /// Usually used for the if statements to check for something.
        /// </summary>
        [Browsable(false)]
        public bool InsertionAccepteed;
        public DevxMasterRibbonForm()
        {
            InitializeComponent();
        }
    }
}